<?php
class Define extends Model{
	//TODO: 改为固定的,避免查询
	public function get_items() {
		$res = $this->query('SELECT DISTINCT (`item_name`) FROM  `shouce_func` WHERE 1 ORDER BY  `id` DESC  LIMIT 20');
		$re = '';
		foreach($res as $v) {
			$re []= $v['item_name'];
		}
		return $re;
	}
	
	
	
}
?>